@charset "utf-8";

*{
    margin: 0;
    padding: 0;
}
//rem换算函数
@function r($px){
    @return ($px/40)*1rem; 
}
#userInfo{
    width: 400px;
    height: 100vh;
    background-position: 0% 0%;
    position: absolute;
    left: 55%;
    margin-left: -300px;
    overflow: hidden;
    max-height: 812px;
    background-image: url(../img/luckyDraw/ld_bg.jpg);
    background-size: cover;
    //中奖提示信息
    #tips{
        margin: 0;
        width: 100%;
        height: 20vh;
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
        .divHr{
            border-top: 1px solid white;
            border-bottom: 1px solid white;
            height: 5px;
        }
        .divTips{
            height: r(20);
            font-size: r(10);
            color: white;
            letter-spacing:r(6);
            text-align: center;
            line-height: r(20);
        }
        .divTips2{
            height: r(20);
            font-size: r(6);
            color: white;
            text-align: center;
            margin-top: r(15);
        }
    }
    //输入信息
    #inputInfo{
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translateX(-50%);
        div{
            input{
                color: #a20500;
                &::-webkit-input-placeholder{
                    color: #a20500;
                }
                background: #f0ce89;
                text-indent:r(3);
                height: r(15);
                margin-bottom: r(5);
                border: 1px solid #f0ce89;
            }
        }
    }
    //按钮
    #allBtn{
        position: absolute;
        left: 50%;
        top: 70%;
        transform: translateX(-50%);
        width: 100%;
        .btn{
            background-color: rgba(255,0,0,0); 
            border: 1px solid rgb(255,271,159);
            color: rgb(255,271,159);
        }
        &>div:first-of-type{
            margin-left: 3%;
        }
    }
}



@media (max-width:768px){
    #userInfo{
        width:100%;
        left: 0%;
        margin-left: 0px;
        background-size: cover;
    }
    #userInfo #tips .divTips{
        height: r(80);
        font-size: r(36);
        color: white;
        letter-spacing:r(24);
        text-align: center;
        line-height: r(80);
    }
    #userInfo #tips .divTips2{
        height: r(40);
        font-size: r(24);
        color: white;
        text-align: center;
        margin-top: r(70);
    }
    #userInfo #inputInfo{
        position: absolute;
        top: 45%;
        left: 45%;
        transform: translateX(-50%);
    }
    #userInfo #inputInfo div input{
        text-indent:r(12);
        height: r(60);
        margin-bottom: r(15);
    }
}